<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加员工</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/customer/index.css">
</head>
<body>
    <div id="main" style="padding:10px 0;padding-bottom: 0px;">
        <!--<div class="title">-->
            <!--<h3 style="font-weight: bold;">编辑</h3>-->
            <!--<hr class="layui-bg-green">-->
        <!--</div>-->
        <form class="layui-form layui-form-pane m-form">
            <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline">
                    <input th:value="${customer.getId()}" type="hidden" name="id">
                    <input th:value="${customer.getName()}" type="text" name="name" autocomplete="off" lay-verify="required" placeholder="请输入姓名" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input th:checked="${customer.getSex()=='1'?'checked':'false'}" type="radio" name="sex" value="1" title="男" checked>
                    <input th:checked="${customer.getSex()=='0'?'checked':'false'}" type="radio" name="sex" value="0" title="女">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">电话</label>
                <div class="layui-input-inline">
                    <input th:value="${customer.getPhone()}" type="text" name="phone" lay-verify="required|phone" placeholder="请输入手机号码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <input th:checked="${customer.getStatus()=='on'?'checked':'false'}" type="checkbox" name="status" lay-text="On|Off" lay-skin="switch">
                </div>
            </div>
            <div class="layui-form-item layui-form-text" style="width: 56.5%;">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea th:text="${customer.getNote()}" id="note" placeholder="请输入......" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <button class="layui-btn" lay-submit lay-filter="edit_submit">提交</button>
                <button type="reset" class="layui-btn layui-btn-warm" style="margin-left: -4px;">重置</button>
            </div>
        </form>
    </div>
</body>
<script src="../../static/js/jquery-3.4.1.js"></script>
<script src="../../static/layui/layui.js"></script>
<script src="../../static/js/customer/index.js"></script>
</html>